<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var obj = {
            dogName: '可可',
            type: '阿拉斯加犬',
            age: 5,
            color: '棕红色',
            bark: function () {
                console.log('汪汪汪');
            },
            showFilm: function () {
                console.log('演电影');
            }
        }
        console.log(obj.dogName);
        console.log(obj.type);
        console.log(obj.age);
        console.log(obj.color);
        obj.bark();
        obj.showFilm();
    </script>
</head>

<body>

</body>

</html>